package wine.logic.interfaces;

import java.util.List;

import javax.ejb.Remote;
import javax.ejb.Stateless;

import wine.ejb.utilities.BaseSessionBean;
import wine.logic.bean.WInformationPageDao;
import wine.logic.entity.WInformationPage;
@Stateless
@Remote(WInformationPageDao.class)
public class WInformationPageImpl extends BaseSessionBean<WInformationPage>
		implements WInformationPageDao {

	@SuppressWarnings("unchecked")
	@Override
	public List<WInformationPage> findPagesByIinfoid(Long iinfoid){
		return em.createNamedQuery("pageInfoList").setParameter("iinfoid", iinfoid).getResultList();
	}

}
